import * as React from 'react';
import {Main} from "./Main"
import {Navigate, Route} from "react-router-dom";

export const RedirectVdemo = () => {
    let state;
    state = {
        isLogin: true
    }

    return (<div>
        {state.isLogin ? <h1>重定向跳转</h1> : <Navigate replace to="/main"/>}
    </div>);
};
